import config from "@/config"
import http from "@/utils/request"
import { SysMenuInfoBo } from '../menu/types'
export default {
	/**
	 * 获取当前用户的所有菜单
	 */
	userMenus: {
		url: `${config.API_URL}/sysuser/usermenu`,
		name: "获取当前用户的所有菜单",
		post: async function () {
			var res: SysMenuInfoBo[] = await http.post(this.url);
			return res;
		}
	},
}
